package comman;

public class Utility {
	public static void main(String[] args) {
		String name = "gyanendra";
		//System.out.println("updateNameString: " + updateNameString(name));
	}
	
	/**
	 * This method will remove the ' with the #.
	 * @return string 
	 */
	public static String updateNameString(String name) {
		
		if(name.length() == (name.lastIndexOf("'") +1)) {
			return name.replace("'", "#");
		} else {
			return name.replace("'", "#")+ "#";
		}
	}
}
